/*
 * Copyright (c) 2023 huipei.x
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.xphsc.kubernetes.core.query;

import io.kubernetes.client.openapi.models.V1Deployment;
import io.kubernetes.client.openapi.models.V1Secret;

/**
 * {@link }
 * @author <a href="xiongpeih@163.com">huipei.x</a>
 * @description: Create Deployment Body
 * @since 1.0.0
 */
public class CreateDeploymentBody {

    private String namespace;
    private V1Deployment body;
    private String pretty;
    private String dryRun;
    private String fieldManager;
    private  String fieldValidation;

    public static CreateDeploymentBody.Builder builder() {
        return new CreateDeploymentBody.Builder();
    }

    private CreateDeploymentBody(CreateDeploymentBody.Builder builder) {
        this.namespace = builder.namespace;
        this.body=builder.body;
        this.pretty = builder.pretty;
        this.dryRun = builder.dryRun;
        this.fieldManager = builder.fieldManager;
        this.fieldValidation=builder.fieldValidation;
    }


    public static class Builder {
        private String namespace;
        private V1Deployment body;
        private   String pretty;
        private String dryRun;
        private String fieldManager;
        private String fieldValidation;

        public Builder() {
        }
        public <T> CreateDeploymentBody.Builder namespace(String namespace) {
            this.namespace = namespace;
            return this;
        }
        public <T> CreateDeploymentBody.Builder body(V1Deployment body) {
            this.body = body;
            return this;
        }



        public <T> CreateDeploymentBody.Builder pretty(String pretty) {
            this.pretty = pretty;
            return this;
        }

        public <T> CreateDeploymentBody.Builder dryRun(String dryRun) {
            this.dryRun = dryRun;
            return this;
        }

        public <T> CreateDeploymentBody.Builder fieldManager(String fieldManager) {
            this.fieldManager = fieldManager;
            return this;
        }

        public <T> CreateDeploymentBody.Builder fieldValidation(String fieldValidation) {
            this.fieldValidation = fieldValidation;
            return this;
        }


        public CreateDeploymentBody build() {
            return new CreateDeploymentBody(this);
        }
    }

    public String namespace() {
        return namespace;
    }

    public V1Deployment body() {
        return body;
    }

    public String pretty() {
        return pretty;
    }




    public String dryRun() {
        return dryRun;
    }

    public String fieldManager() {
        return fieldManager;
    }
    public String fieldValidation() {
        return fieldValidation;
    }
}
